package com.zhiqian.community.entity;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
public class Event {
    private String topic;
    private int entityType;
    private Integer entityId;
    private Integer sourceId;
    private Integer targetId;
    private Map<String,Object> data=new HashMap<>();

    public void setData(String key,Object val) {
        this.data.put(key,val);
    }
}
